<script>
	export default {
		onLaunch() {
			this.$api.login.toeknRequest({ //获取token值
				data: {
					clientId: '23ajqbxews94av3tz9otrtz0',
					clientSecret: '8jqmoew9u9d3hbx0goahjdk44n8p5ehc',
				},
				success: res => {
					uni.setStorage({
						key: 'token',
						data: `Bearer ${res.data.data.access_token}`,
					});
				}
			})
		},
		onShow() {},
		onHide() {}
	};
</script>

<style>
	/* 解决头条小程序组件内引入字体不生效的问题 */
	/* #ifdef MP-TOUTIAO */
	@font-face {
		font-family: uniicons;
		src: url('/static/font/uni.ttf');
	}

	/* #endif */
	.red {
		background-color: #FF3B30;
	}
	.black {
		background-color: black;
	}
	.blue {
		background-color: #027AFF;
	}
	.gold {
		background-color: #FFD051;
	}
	.white {
		background-color: white;
		color: black !important;
	}
	.headImgBorder{
		border-radius: 50%;
		margin: 6rpx;
	}
</style>
